fix: support named tab groups for independent tab switching#698
Merged
fix: support named tab groups for independent tab switching#698
Conversation
Co-authored-by: henryiii <4616906+henryiii@users.noreply.github.com>
Co-authored-by: henryiii <4616906+henryiii@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for multiple tab groups implementation
Support named tab groups for independent tab switching
Nov 21, 2025
Collaborator
|
pre-commit.ci autofix |
henryiii
approved these changes
Nov 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current tab implementation switches all tabs with matching labels globally, breaking when multiple tab groups exist on the same page (e.g.,
docs/pages/guides/style.mdhas separate formatter and configuration tabs).Changes
Ruby plugin (
docs/_plugins/tabs.rb){% tabs group_name %}'default'group when unspecified (backward compatible){group}-{label}-btnand{group}-{label}-tabJavaScript (
docs/assets/js/tabs.js)groupNameparameter toopenTab(tabName, groupName = 'default')Usage
{% tabs formatters %} {% tab ruff Ruff-format %} ... {% endtab %} {% tab black Black %} ... {% endtab %} {% endtabs %} {% tabs ruff-config %} {% tab simple Simple %} ... {% endtab %} {% endtabs %}Applied to
docs/pages/guides/style.mdwhere two distinct tab groups now operate independently.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.